Repository navigation
fix: unbreak the amd system build — zig 0.16 names, cargo-llvm-cov checks, atlas-search HOME + smoke fixture, id inventory path, rust pin docs, shell-contract v1.8 - #10406
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 48 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…aseSmall/Debug) pkgs/id pins zig 0.16 (nix-common.nix), whose builtin.OptimizeMode members are capitalized; the example used .small/.debug and the id-0.1.0 build died on both lines, blocking the amd toplevel build (#10322 switch). One file, two lines.
The 0.9.0 package builds, but its check phase fails in the Nix sandbox: the integration tests run LLVM-instrumented binaries that SIGSEGV under the pinned Rust 1.99 toolchain (14 failed / 6 passed, nix log of cargo-llvm-cov-0.9.0.drv, 2026-11-14). This blocked the amd toplevel (system-path) and with it the #10322 switch. Same remedy as the zulip-term/neovim/mise overlays directly above.
Every server::tests job writes traces under home_dir()/.local/state/atlas-search (server.rs); in the Nix sandbox HOME=/homeless-shelter is unwritable, so all 14 server tests failed with trace-sink Permission denied and the package build went red, blocking the amd toplevel (#10322 switch). preCheck exports HOME=$TMPDIR in both build paths (crane and buildRustPackage). No test is skipped; the suite now runs in an environment that matches what it assumes.
…pe compare Slice 2 added a per-run random query_id (UUID) to the search envelope; the packaged-binary smoke check byte-compared the CLI output against the recorded Python envelope, so fts_default could never match again — the installCheck went red and blocked the amd toplevel (#10322 switch). Verified by direct diff: query_id is the ONLY differing field; results, scores and ordering are identical. The check now drops query_id before comparing; everything else must still match the recording exactly.
The admission-coverage test (46efc48, #10177) reads the inventory at CARGO_MANIFEST_DIR/docs/operation-path-inventory.md. pkgs/id/docs is a symlink to the repo-root doc/ tree, which resolves in a checkout but dangles inside the Nix package source (pkgs/id alone), so the three oracle tests failed in the amd toplevel build with file-not-found and blocked the #10322 switch. The inventory now lives at pkgs/id/tests/operation-path-inventory.md — a real path inside the package — and the test reads it there. Verified: cargo test --test admission_path_coverage, 3 passed.
The deps bump d4d80fb (#7205) moved rust-toolchain.toml to 1.99.1 but README.md and WEB.md still said 1.99.0, failing tests/toolchain_pin.rs (the_root_docs_name_the_pinned_rust_version) in the amd toplevel build (#10322 switch). Docs now name 1.99.1. The same commit applies cargo fmt across the package: the Nix postCheck runs cargo fmt --check and drift in crates/id-core/tests/canonical_cbor_vectors.rs and tests/admission_path_coverage.rs would have failed it next. fmt --check now exits 0.
pkgs/id/contract/shell-contract.v1.json is at revision 8, but the_contract_check_reports_conformance_or_every_violation hardcoded the v1.7 summary string. Update the expectation to match the embedded contract.
cc54164 to
7f78cb5
Compare
Seven small fixes, each separately revertible, found one per verification build of the staged switch (code#10322). The staged payload was merged but never build-verified end to end; these are the latent breaks that surfaced:
Verified: full nixos toplevel build green on this branch (nix build .#nixosConfigurations.amd.config.system.build.toplevel, exit 0), including the id package check phase (671 tests) and postCheck (clippy -D warnings + fmt --check).
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.